package org.glutenberg;

import com.sun.lwuit.Form;
import com.sun.lwuit.TextField;

public class FixedTextField extends TextField {

	public void keyPressed(int keyCode) {
		if(keyCode == 8 || keyCode == -8){
			this.deleteChar();
		} else {
			super.keyPressed(keyCode);
		}
	}

	public void keyReleased(int keyCode) {
		if(keyCode == 8 || keyCode == -8){
		} else {
			super.keyReleased(keyCode);
		}
	}

	public void keyRepeated(int keyCode) {
		if(keyCode == 8 || keyCode == -8){
			this.deleteChar();
		} else {
			super.keyPressed(keyCode);
		}
	}

}
